package com.project.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author wangsihan
 * @since 2021-10-08
 * 订单实体bean
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class SysOrder extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("pk_orderId")
    private Integer pkOrderid;

    /**
     * 商品外键
     */
    @TableField("fk_productId")
    private SysProduct product;

    /**
     * 所属商铺
     */
    private SysStore store;

    /**
     * 所属用户外键
     */
    //@TableField("fk_userId")
    private SysUser user;

    /**
     * 骑手外键
     */
    private SysRider rider;

    /**
     * 订单送货地址
     */
    private String oAddress;

    /**
     * 订单编号
     */
    private String oNumber;

    /**
     * 订单状态
     */
    private Integer oState;

    /**
     * 下单时间
     */
    private String oTime;

    /**
     * 订单总金额
     */
    private Integer oMoney;

    /**
     * 收货人电话
     */
    private String oReceiverPhone;

    /**
     * 收货人地址
     */
    private String oReceiverAddress;

    /**
     * 订单备注
     */
    private String oDescription;

    /**
     * 订单明细集合
     */
    private List<SysOrderDetail> orderDetails;
}
